package com.hutu.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class RabbitMqApplication {
    public static final String QUEUE_NAME = "queue";
    public static final String EXCHANGE_NAME = "exchange";
    public static final String ROUTING_KEY = "routingKey";

    // 超时
    public static final String EXCHANGE_NAME_TIMEOUT = "test.timeout";
    public static final String ROUTING_KEY_TIMEOUT = "routingKey.test.timeout";
    public static final String QUEUE_NAME_TIMEOUT = "queue.test.timeout";

    // 死信
    public static final String EXCHANGE_NAME_DEAD_LETTER = "test.deadLetter";
    public static final String ROUTING_KEY_DEAD_LETTER = "routingKey.test.deadLetter";
    public static final String QUEUE_NAME_DEAD_LETTER = "queue.test.deadLetter";

    // 正常队列
    public static final String QUEUE_NAME_NORMAL = "queue.test.normal";
    public static final String ROUTING_KEY_NORMAL = "routingKey.test.normal";
    public static final String EXCHANGE_NAME_NORMAL = "test.normal";


    public static final String USER_EX = "user_ex";
    public static final String USER_EX_QUEUE = "user_ex_queue";
    public static final String USER_EX_QUEUE_RK = "user_ex_queue_rk";
    //死信
    public static final String USER_DEAD_EX = "user_dead_ex";
    public static final String USER_DEAD_EX_QUEUE = "user_dead_ex_queue";
    public static final String USER_DEAD_EX_QUEUE_RK = "user_dead_ex_queue_rk";

    public static void main(String[] args) {
        SpringApplication.run(RabbitMqApplication.class, args);
    }
}
